﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace RealEstateWebsite.Models
{
    public class Post
    {
        public int Id { get; set; }
        public int UserId { get; set; }
        public int CategoryId { get; set; }
        public int AddressId { get; set; }
        public string Title { get; set; }
        public int NoOfView { get; set; }
        public string AddressDetail { get; set; }
        public string Area { get; set; }
        public int TypePriceId { get; set; }
        public int Price { get; set; }
        public string Description { get; set; }
        public string Name { get; set; }
        public string PhoneNo1 { get; set; }
        public string PhoneNo2 { get; set; }
        public string VideoUrl { get; set; }
        public int IsChecked { get; set; }
        public float LocationLongtitude { get; set; }
        public float LocationLatitude { get; set; }
        public int NoOfComment { get; set; }
        public DateTime TimeOfPost { get; set; }
        public int IsDelete { get; set; }
        public int IsClosed { get; set; }
        public Category Category { get; set; }
        public Address Address { get; set; }
        public TypPrice TypPrice { get; set; }
    }

    public partial class Category
    {
        public string Id {get;set;}
        public string ParentID { get; set; }
        public string Name { get; set; }    
    } 

    public partial class Address
    {
        public string Id {get;set;}
        public string ParentID { get; set; }
        public string Name { get; set; }           
    }

    public partial class TypPrice
    {
        public string Id { get; set; }
        public string ParentID { get; set; }
        public string Name { get; set; }
    }

}
